package cn.ctodb.mall.goods.service;

import cn.ctodb.mall.goods.service.dto.GoodsTypeDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * Service Interface for managing GoodsType.
 */
public interface GoodsTypeService {

    /**
     * Save a goodsType.
     *
     * @param goodsTypeDTO the entity to save
     * @return the persisted entity
     */
    GoodsTypeDTO save(GoodsTypeDTO goodsTypeDTO);

    /**
     *  Get all the goodsTypes.
     *  
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<GoodsTypeDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" goodsType.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    GoodsTypeDTO findOne(Long id);

    /**
     *  Delete the "id" goodsType.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the goodsType corresponding to the query.
     *
     *  @param query the query of the search
     *  
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<GoodsTypeDTO> search(String query, Pageable pageable);
}
